import {
	request,
	hotelRequest
} from '@/sheep/request';

export default {
	// 地图用-查看下级
	areaNext: (params) =>
		request({
			url: 'data/testArea/getListByPid',
			method: 'GET',
			params
		}),
	// 地图用-省
	areaNew: () =>
		request({
			url: 'data/testArea',
			method: 'GET',
		}),
	// 普通省市区
	area: () =>
		request({
			url: 'data/area',
			method: 'GET',
		}),
	regeo: (params) =>
		request({
			url: 'data/area/regeo',
			method: 'GET',
			params,
		}),
	faq: () =>
		request({
			url: 'data/faq',
			method: 'GET',
		}),
	richtext: (id) =>
		request({
			url: 'data/richtext/' + id,
			method: 'GET',
		}),
	getcity: (params) =>
		request({
			url: 'hotel/index/lockCity',
			method: 'GET',
			params
		}),
	getCityList: (params) =>
		request({
			url: '/shop/api/hotel/index/cityList',
			method: 'GET',
			params
		}),
	getCfg: (data) =>
		request({
			url: '/shop/api/get_cfg',
			method: 'POST',
			data,
		}),
};